import { createRouter, createWebHistory } from "vue-router";

const routes = [
  {
    path: '/',
    redirect: '/Login'
  },
  {
    path: '/Login',
    name: 'Login',
    component: () => import('../views/Login.vue')
  },
  {
    path: '/Layout',
    name: 'Layout',
    component: () => import('../views/Layout.vue'),
    children: [
      {
        path: 'Layout',
        redirect: '/Aima'
      },
      {
        path: '/Aima',
        name: 'Aima',
        component: () => import('../views/Aima.vue')
      }
    ]
  }
]

const router = createRouter({
  history: createWebHistory(),
  routes
})

export default router;